package de.java.swing.extension.ui;

import java.awt.FlowLayout;

import javax.swing.BorderFactory;

/**
 * TODO Kommentar.
 * 
 * @author Patrick Haas
 * @since 1.0.0
 * 
 */
public class Menubar extends ExtendedPanel {

	private static final long serialVersionUID = -7505220355861532146L;

	public static ExtendedPanel createSeperator(int width) {
		ExtendedPanel extendedPanel = new ExtendedPanel();
		extendedPanel.setBorder(BorderFactory.createEmptyBorder(0, width / 2, 0, width / 2));
		return extendedPanel;
	}

	public Menubar() {
		this.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 0));
	}

	public void addMenu(Menu menu) {
		this.add(menu);
	}

}
